package com.shungen.apicloud;

import cn.hutool.http.HttpRequest;
import cn.hutool.json.JSONUtil;

import java.util.HashMap;

/**
 * @author shungen
 * @date 2024年08月06日 10:33
 */
public class Main {
    public static void main(String[] args) {
        HashMap<String,String> map = new HashMap<>();
        map.put("labelName","海洋");
        String requestBody = JSONUtil.toJsonStr(map);
        String response = HttpRequest.post("localhost:8801/api/label/add").body(requestBody).execute().body();
        System.out.println(response);
    }
}
